﻿import Vue from "vue";

import "normalize.css/normalize.css"; // A modern alternative to CSS resets

import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import locale from "element-ui/lib/locale/lang/zh-CN"; // lang i18n

import "@/styles/index.scss"; // global css

import App from "./App";
import store from "./store";
import router from "./router";

import '@/icons' // icon
import "@/permission"; // permission control
require("babel-polyfill"); // es6
import { hasBtnPermission } from './utils/permission';

import _lodash from 'lodash';
Vue.prototype.$lodash=_lodash;
Vue.use(ElementUI, { locale });
// Vue.prototype.$message = message; //重写message提示框  一定要放在Vue.use(ElementUI)之后

Vue.config.productionTip = false;
Vue.config.devtools = true;
Vue.prototype.hasPerm = hasBtnPermission
export default new Vue({
	el: "#app",
	router,
	store,
	render: h => h(App)
});
